// pages/my/my.js
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    pageList:[
      {title:"消息设置",img:"https://696d-image-ac66k-1302520890.tcb.qcloud.la/%E5%9B%BE%E5%B1%82%20623.png?sign=d66296dbd86f6cb5f9f798f950f8ec21&t=1604477188",url:"/hyb_yl/jigou/pages/set_news/set_news"},
      {title:"账户总览",img:"https://696d-image-ac66k-1302520890.tcb.qcloud.la/%E5%9B%BE%E5%B1%82%20624.png?sign=efb256f930c3bbc9a317e11d10cd7812&t=1604477654",url:"/hyb_yl/jigou/pages/all_data/all_data"},
      {title:"支付宝",img:"https://696d-image-ac66k-1302520890.tcb.qcloud.la/%E5%9B%BE%E5%B1%82%20627.png?sign=90078ab569d043e56746ada9de2b8bd9&t=1604477674",url:"/hyb_yl/jigou/pages/zfb_page/zfb_page"},
      {title:"银行卡",img:"https://696d-image-ac66k-1302520890.tcb.qcloud.la/%E5%9B%BE%E5%B1%82%20625.png?sign=9520871fa61e6929773501eaaf955402&t=1604477665",url:"/hyb_yl/jigou/pages/bank_card/bank_card"},
      {title:"联系客服",img:"https://696d-image-ac66k-1302520890.tcb.qcloud.la/%E5%9B%BE%E5%B1%82%20628.png?sign=624ed0522c0b4f572588ccce0494302f&t=1604477682",url:""},
    ]
  },
  goback:function(e){
    var url=e.currentTarget.dataset.url
    wx.navigateTo({
      url: url,
    })
  },
  gomoney:function(){
    wx.navigateTo({
      url: "/hyb_yl/jigou/pages/tixian/tixian",
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    that.getHospital();
  },
  getHospital:function(){
    var that = this;
    app.util.request({
      'url':"enctry/wxapp/regin.jigouif",
      data:{
        openid:wx.getStorageSync('openid'),
      },
      success:function(res){
        that.setData({
          info:res.data
        })
      }
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})